package com.syher.quartz.core.config.pool.task;

import com.syher.quartz.task.model.TaskInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by shenyuhang on 2018/3/7.
 */
public class ThreadTask implements Runnable {

    private static final Logger logger = LoggerFactory.getLogger(TaskInfo.class);

    String taskName;

    public ThreadTask(String taskName) {
        this.taskName = taskName;
    }

    @Override
    public void run() {
        logger.info(String.format("task[%s] is running...", taskName));
    }
}